
using System;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
 // ERROR: Not supported in C#: OptionDeclaration
namespace NCS_CS
{
	internal partial class frmSelectChanel : System.Windows.Forms.Form
	{
		public int the;
		public bool confirm;
		private void Command1_Click(System.Object eventSender, System.EventArgs eventArgs)
		{
			confirm = true;
            //string method1ele="";
            the = 0;
            switch (List1.Text)
            {
                case "O":
                    //method1ele = "C";
                    break;
                case "N":
                    //method1ele = "S";
                    the = 1;
                    break;
                case "O2":
                    //method1ele = "C2";
                    the = 2;
                    break;
                case "N2":
                    //method1ele = "S2";
                    the = 3;
                    break;
            }
            //the = ModMain.getEleChanel(method1ele);
			this.Close();
		}

		private void Command2_Click(System.Object eventSender, System.EventArgs eventArgs)
		{
			confirm = false;
			this.Close();
		}

//UPGRADE_WARNING: Form event frmSelectChanel.Activate has a new behavior. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="6BA9B8D2-2A32-4B6E-8D36-44949974A5B4"'
		private void frmSelectChanel_Activated(System.Object eventSender, System.EventArgs eventArgs)
		{
			confirm = false;
		}

		private void frmSelectChanel_Load(System.Object eventSender, System.EventArgs eventArgs)
		{
			List1.Items.Clear();
			if (ModMain.getChanelEnable("C")) {
				List1.Items.Add("O");
			}
			if (ModMain.getChanelEnable("S")) {
				List1.Items.Add("N");
			}
			if (ModMain.getChanelEnable("C2")) {
				List1.Items.Add("O2");
			}
			if (ModMain.getChanelEnable("S2")) {
				List1.Items.Add("N2");
			}
			List1.SelectedIndex = 0;
		}

	}
}
